package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

import framework.core.Value;

public class GSProductTypeBean implements GSBaseBean{

	private String id = ""; //ID

	private String productId = ""; //PRODUCT_ID

	private String productCode = ""; //PRODUCT_CODE

	private int productType= Value.NULL_INT;  //PRODUCT_TYPE

	private String providerCode = ""; //PROVIDER_CODE

	private String remark = ""; //REMARK

	private String createTime = ""; //CREATE_TIME

	private String createUser = ""; //CREATE_USER

	private String createUserId = ""; //CREATE_USER_ID

	private String lastUpdateTime = ""; //LAST_UPDATE_TIME

	private String lastUpdateUser= ""; //LAST_UPDATE_USER

	private String lastUpdateUserId = ""; //LAST_UPDATE_USER_ID

	private int isBid = Value.NULL_INT;  //IS_BID

	private int isBalance = Value.NULL_INT;  //IS_BALANCE
	
	private int status = Value.NULL_INT;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	
	public int getProductType() {
		return productType;
	}

	public void setProductType(int productType) {
		this.productType = productType;
	}

	public String getProviderCode() {
		return providerCode;
	}

	public void setProviderCode(String providerCode) {
		this.providerCode = providerCode;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getLastUpdateUser() {
		return lastUpdateUser;
	}

	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	public String getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	public void setLastUpdateUserId(String lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}

	public int getIsBid() {
		return isBid;
	}

	public void setIsBid(int isBid) {
		this.isBid = isBid;
	}

	public int getIsBalance() {
		return isBalance;
	}

	public void setIsBalance(int isBalance) {
		this.isBalance = isBalance;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Object process(ResultSet aResultSet) throws SQLException {
		GSProductTypeBean bean = new GSProductTypeBean();
		bean.id = aResultSet.getString("id")== null ?"":aResultSet.getString("id");
		bean.createTime = aResultSet.getString("create_time")== null ?"":aResultSet.getString("create_time");
		bean.createUser = aResultSet.getString("create_user")== null ?"":aResultSet.getString("create_user");
		bean.createUserId = aResultSet.getString("create_user_id")== null ?"":aResultSet.getString("create_user_id");
		bean.isBalance = aResultSet.getInt("is_balance");
		bean.isBid= aResultSet.getInt("is_bid");
		bean.lastUpdateTime = aResultSet.getString("last_update_time")== null ?"":aResultSet.getString("last_update_time");
		bean.lastUpdateUser = aResultSet.getString("last_update_user")== null ?"":aResultSet.getString("last_update_user");
		bean.lastUpdateUserId = aResultSet.getString("last_update_user_id")== null ?"":aResultSet.getString("last_update_user_id");
		bean.productCode = aResultSet.getString("product_code")== null ?"":aResultSet.getString("product_code");
		bean.productId = aResultSet.getString("product_id")== null ?"":aResultSet.getString("product_id");
		bean.productType = aResultSet.getInt("product_type");
		bean.providerCode = aResultSet.getString("provider_code")== null ?"":aResultSet.getString("provider_code");
		bean.remark = aResultSet.getString("remark")== null ?"":aResultSet.getString("remark");
		bean.status = aResultSet.getInt("status");
		return bean;
	}

}
